package com.diana.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * xxl-job
 */
@Component
public class XxlJobBean {

    private static final Logger log = LoggerFactory.getLogger(XxlJobBean.class);

    @XxlJob("dianaJobHandler")
    public ReturnT<String> test(String param){
        log.info("===param:"+param);
        return ReturnT.SUCCESS;
    }
}
